<?php
namespace Factory;
/**
 * Created by PhpStorm.
 * User: cy
 * Date: 18-1-3
 * Time: 上午10:01
 * 注册模式
 */
class Register
{
    public static $objs;
    public static function set($alias,$obj)
    {
        self::$objs[$alias]=$obj;
    }
    public function _unset($alias)
    {
        unset(self::$objs[$alias]);
    }
    public static function get($alias)
    {
        return self::$objs[$alias];
    }
}